﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.Primitives
{
    public class PrimitiveNDisconnect : Primitive
    {
        #region Attributs d'instance de classe

        private string adresseReponse;
        private string raison;

        #endregion

        private PrimitiveNDisconnect(Primitives primitive, string adresseReponse, string raison)
        {
            this.primitive = primitive;
            this.adresseReponse = adresseReponse;
            this.raison = raison;
        }

        #region Propriétés

        public string AdresseReponse { get { return adresseReponse;  } }
        public string Raison { get { return raison; } }

        #endregion

        #region Méthode de création d'instance de classe

        static public PrimitiveNDisconnect CreateNDataReq(string adresseReponse)
        {
            return new PrimitiveNDisconnect(Primitives.NDisconnectRequest, adresseReponse, string.Empty);
        }
        static public PrimitiveNDisconnect CreateNDataInd(string adresseReponse, string raison)
        {
            return new PrimitiveNDisconnect(Primitives.NDisconnectIndication, adresseReponse, raison);
        }

        #endregion
    }
}
